summaryrefslogtreecommitdiff
path: root/app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-11-17 12:06:56 +0900
committerjoonhoekim <26rote@gmail.com>2025-11-17 12:06:56 +0900
commitb9ce61033c2f5bc6ec8eb3db200b96058f013bf8 (patch)
tree2366c08f7120fcf49ca3f36c290a2f97d3b0a551 /app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx
parent182dfce1ba5381389a0df05cd9d4a2ea541b229d (diff)
(김준회) 오류 수정: params and searchParams: Nextjs 15부터 Promise 타입으로 변경됨: 서버 컴포넌트에서는 await으로 resolve 하도록 처리, Promise 타입 명시적으로 추가(Generic)
Diffstat (limited to 'app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx')
-rw-r--r--app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx b/app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx
index 93b948c6..ebd4cbb3 100644
--- a/app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx
+++ b/app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx
@@ -2,8 +2,9 @@ import { getQnaById } from "@/lib/qna/service";
import QnaDetail from "@/lib/qna/table/qna-detail";
import { notFound } from "next/navigation";
-export default async function QnaDetailPage({ params }: { params: { id: string } }) {
- const question = await getQnaById(params.id);
+export default async function QnaDetailPage({ params }: { params: Promise<{ id: string }> }) {
+ const resolvedParams = await params;
+ const question = await getQnaById(resolvedParams.id);
if (!question) {
notFound();